/**
 * Created by yangfakuan on 2018/10/19.
 */
(function (e, n, t) {
    var r = n.rss;
    var i = n.localInfo;
    var c = i.reqClientType;
    var o = i.loginUserName;
    var s = n.authDialog;
    var a = n.getAuthCode;
    var l = false;
    var u;
    var f;
    var d = 901;
    var _ = 902;
    var v = 101;
    var p = 102;
    var h = 103;
    var y = 103;
    var m = 201;
    var b = 202;
    var k = 203;
    var T = 203;
    var g = 301;
    var A = 302;
    var D = 101;
    var q = 102;
    var x = 103;
    var w = 104;
    var P = 201;
    var C = 202;
    var E = 203;
    var F = 204;
    n.password = "";
    var L = 101;
    var I = 102;
    var h = 103;
    var B = 104;
    var S = 105;
    var K = 106;
    var R = 106;
    var U = 201;
    var V = 202;
    var T = 203;
    var N = 204;
    var O = 205;
    var j = 206;
    var H = 206;
    var M = 302;
    var g = 301;
    var W = 303;
    var G = 304;
    var D = 101;
    var q = 102;
    var x = 103;
    var w = 104;
    var P = 201;
    var C = 202;
    var E = 203;
    var F = 204;
    var Q = {
        oldAccountType: "",
        oldUserAccount: "",
        oldAuthCode: "",
        newAccountType: "",
        newUserAccount: "",
        newAuthCode: ""
    };
    var X = {};
    var z = i.userAccount;
    var c = i.reqClientType;
    var J = "";
    var Y = 0;
    var Z = "";
    var $ = 0;
    var ee = 0;
    var ne = 1;
    var te = 2;
    var re = 5;
    var ie = 6;
    var ce = 1;
    var oe = 2;
    var se = 3;
    var ae = 0;
    n.accountList = [];
    var le = '<div class="step-container"><div class="step-selected step1">1</div><div class="step-dot"></div><div class="step-dot"></div><div class="step-gray step2">2</div><div class="step-dot"></div><div class="step-dot"></div><div class="step-gray step3">3</div></div>';
    var ue = '<div class="step-container"><div class="step-gray step1">1</div><div class="step-dot"></div><div class="step-dot"></div><div class=" step-selected step2">2</div><div class="step-dot"></div><div class="step-dot"></div><div class="step-gray step3">3</div></div>';
    var fe = '<div class="step-container"><div class="step-gray step1">1</div><div class="step-dot"></div><div class="step-dot"></div><div class=" step-gray step2">2</div><div class="step-dot"></div><div class="step-dot"></div><div class="step-selected  step3">3</div></div>';

    function de() {
        this.init()
    }

    function _e() {
    }

    de.prototype = {
        init: function () {
            this.registerValidator();
            this.initAccountList();
            this.initEvent();
            if (!Z && i.oper == 6) {
                e("#security_phone_set_btn").click()
            } else if (e("#bindPhoneBtn").length > 0 && i.oper == 2) {
                e("#bindPhoneBtn").click()
            }
        }, initEvent: function () {
            var n = this;
            e("#cpsw").click(function () {
                var e = {
                    sceneID: 20, callback: function (e) {
                        i.frequentlyDev = e.frequentlyDev;
                        i.riskfreeKey = e.riskfreeKey;
                        n.modifyPwd()
                    }
                };
                chkSecurityRiskFn(e)
            });
            e("#security_email_set_btn").click(function () {
                n.bindSecEmail()
            });
            e("#security_phone_set_btn").click(function () {
                n.bindSecPhone()
            });
            e("#security_email_modify_btn").click(function () {
                n.changeSecEmail()
            });
            e("#security_email_remove_btn").click(function () {
                n.unbindSecEmail()
            });
            e("#security_phone_modify_btn").click(function () {
                n.changeSecPhone()
            });
            e("#security_phone_remove_btn").click(function () {
                n.unbindSecPhone()
            });
            e("#bindEmailBtn").click(function () {
                n.bindEmail()
            });
            e("#bindPhoneBtn").click(function () {
                n.bindPhone()
            });
            e("#changeEmailBtn_0").click(function () {
                n.changeEmail()
            });
            e("#changePhoneBtn_0").click(function () {
                n.changePhone()
            });
            e("span[id^='unbindEmailBtn_']").click(function (t) {
                var r = t.target.id;
                var i = "0";
                if (r.indexOf("_") >= 0) {
                    i = r.split("_")[1]
                }
                var c = e("#emailVal_" + i).text().trim();
                n.unbindEmail(c)
            });
            e("span[id^='unbindPhoneBtn_']").click(function (t) {
                var r = e("#phoneExp_" + this.id.split("_")[1]).text().trim();
                n.unbindPhone(r)
            });
            e("span[id^='verifyPhoneBtn_']").click(function (e) {
                n.verifyPhone(e)
            });
            e("span[id^='verifyEmailBtn_']").click(function (t) {
                var r = t.target.id;
                var i = "0";
                if (r.indexOf("_") >= 0) {
                    i = r.split("_")[1]
                }
                var c = e("#emailVal_" + i).text().trim();
                var o = e("#emailVal_" + i).attr("anonyAccount").trim();
                var s = e("#verifyEmailTips_" + i);
                n.verifyEmail(c, o, 1, s)
            });
            e("#security_phone_auth_btn").click(function () {
                n.verifySecPhone()
            });
            e("#security_email_auth_btn").click(function (t) {
                n.verifyEmail(e("#security_email_text").html().trim(), e("#security_email_text").html().trim(), 5, e("#verifySecEmailTips"))
            })
        }, modifyPwd: function () {
            var e, n, t;
            var c = {
                lBtnTxt: r.cancel_btn,
                rBtnTxt: r.nextStep,
                des: rss_new.auth_dialog_des,
                queryCond: i.userAccount,
                reqType: 3,
                optType: "modifyPWD",
                callbackFn: function (r) {
                    t = r.oldUserAccount;
                    n = r.oldAccountType;
                    e = r.oldAuthCode;
                    updatePWDDialog({verifyAccount: t, verifyAccountType: n, verfiyCode: e})
                },
                operType: 501,
                checkOperType: 501,
                isLogin: true
            };
            if (i.twoStepVerify != 0 && i.isCurrentBrowserTrusted == "false") {
                get4FactorsListFn(20, function (e) {
                    c.accountInfoArr = e.userAcctInfoList;
                    s(c)
                })
            } else {
                updatePWDDialog({verifyAccount: t, verifyAccountType: n, verfiyCode: e})
            }
        }, bindEmail: function () {
            var e = i.accountType;
            var n = {
                lBtnTxt: r.cancel_btn,
                desc: rss_new.auth_dialog_des,
                queryCond: o,
                optType: "bind",
                reqType: 3,
                callbackFn: function (e) {
                    openEmailDialog(e, rss_new.uc_common_bind_email_addr, r.bind_btn, 0, 1)
                },
                operType: v,
                checkOperType: q,
                step2: ue,
                isLogin: true
            };
            if (e == 0) {
                n.rBtnTxt = r.verify
            } else {
                n.rBtnTxt = r.next_btn
            }
            var t = {
                sceneID: 2, callback: function (e) {
                    i.frequentlyDev = e.frequentlyDev;
                    i.riskfreeKey = e.riskfreeKey;
                    if (isRiskfree(i.riskfreeKey)) {
                        get4FactorsListFn(2, function (e) {
                            n.accountInfoArr = e.userAcctInfoList;
                            if (e.userAcctInfoList.length == 0) {
                                openEmailDialog({}, rss_new.uc_common_bind_email_addr, r.bind_btn, 0, 1)
                            } else {
                                s(n)
                            }
                        })
                    } else {
                        openEmailDialog({}, r.bind_new_email_tiltle, r.bind_btn, 0, 1)
                    }
                }
            };
            chkSecurityRiskFn(t)
        }, changeEmail: function () {
            var e = {
                desc: rss_new.auth_dialog_des,
                lBtnTxt: r.cancel_btn,
                rBtnTxt: r.next_btn,
                queryCond: o,
                optType: "change",
                reqType: 3,
                callbackFn: function (e) {
                    openEmailDialog(e, r.bind_new_email_tiltle, r.change_btn, 1, 1)
                },
                operType: m,
                checkOperType: C,
                step2: ue,
                isLogin: true
            };
            var n = {
                sceneID: 8, callback: function (n) {
                    i.frequentlyDev = n.frequentlyDev;
                    i.riskfreeKey = n.riskfreeKey;
                    if (isRiskfree(i.riskfreeKey)) {
                        get4FactorsListFn(8, function (n) {
                            e.accountInfoArr = n.userAcctInfoList;
                            s(e)
                        })
                    } else {
                        openEmailDialog({}, r.bind_new_email_tiltle, r.change_btn, 1, 1)
                    }
                }
            };
            chkSecurityRiskFn(n)
        }, bindSecEmail: function () {
            var e = {
                desc: rss_new.auth_dialog_des,
                lBtnTxt: r.cancel_btn,
                rBtnTxt: r.next_btn,
                queryCond: i.loginUserName,
                optType: "bind",
                reqType: 3,
                callbackFn: function (e) {
                    openEmailDialog(e, r.uc_set_sec_email_title, r.bind_btn, 2, 5)
                },
                step2: ue,
                isLogin: true
            };
            var n = {
                sceneID: 10, callback: function (n) {
                    i.frequentlyDev = n.frequentlyDev;
                    i.riskfreeKey = n.riskfreeKey;
                    if (isRiskfree(i.riskfreeKey)) {
                        get4FactorsListFn(10, function (n) {
                            e.accountInfoArr = n.userAcctInfoList;
                            if (n.userAcctInfoList.length == 0) {
                                openEmailDialog({}, r.uc_set_sec_email_title, r.bind_btn, 2, 5)
                            } else {
                                s(e)
                            }
                        })
                    } else {
                        openEmailDialog({}, r.uc_set_sec_email_title, r.bind_btn, 2, 5)
                    }
                }
            };
            chkSecurityRiskFn(n)
        }, bindSecPhone: function () {
            var e = {
                lBtnTxt: r.cancel_btn,
                rBtnTxt: r.next_btn,
                desc: rss_new.auth_dialog_des,
                queryCond: i.loginUserName,
                optType: "bind",
                reqType: 3,
                callbackFn: function (e) {
                    openPhoneDialog(e, r.uc_set_sec_phone_title, r.bind_btn, 2, 6)
                },
                step2: ue,
                isLogin: true
            };
            var n = {
                sceneID: 9, callback: function (n) {
                    i.frequentlyDev = n.frequentlyDev;
                    i.riskfreeKey = n.riskfreeKey;
                    if (isRiskfree(i.riskfreeKey)) {
                        get4FactorsListFn(9, function (n) {
                            e.accountInfoArr = n.userAcctInfoList;
                            if (n.userAcctInfoList.length == 0) {
                                openPhoneDialog({}, r.uc_set_sec_phone_title, r.bind_btn, 2, 6)
                            } else {
                                s(e)
                            }
                        })
                    } else {
                        openPhoneDialog({}, r.uc_set_sec_phone_title, r.bind_btn, 2, 6)
                    }
                }
            };
            chkSecurityRiskFn(n)
        }, changePhone: function () {
            var e = {
                lBtnTxt: r.cancel_btn,
                rBtnTxt: r.next_btn,
                desc: rss_new.auth_dialog_des,
                queryCond: o,
                optType: "change",
                reqType: 3,
                callbackFn: function (e) {
                    openPhoneDialog(e, r.bind_new_phone_number_title, r.change_btn, 1, 2)
                },
                operType: b,
                checkOperType: P,
                step2: ue,
                isLogin: true
            };
            var n = {
                sceneID: 7, callback: function (n) {
                    i.frequentlyDev = n.frequentlyDev;
                    i.riskfreeKey = n.riskfreeKey;
                    if (isRiskfree(i.riskfreeKey)) {
                        get4FactorsListFn(7, function (n) {
                            e.accountInfoArr = n.userAcctInfoList;
                            s(e)
                        })
                    } else {
                        openPhoneDialog({}, r.bind_new_phone_number_title, r.change_btn, 1, 2)
                    }
                }
            };
            chkSecurityRiskFn(n)
        }, bindPhone: function () {
            var e = i.accountType;
            var n = {
                lBtnTxt: r.cancel_btn,
                desc: rss_new.auth_dialog_des,
                queryCond: o,
                optType: "bind",
                reqType: 3,
                callbackFn: function (e) {
                    openPhoneDialog(e, rss_new.uc_common_bind_phone_number, r.bind_btn, 0, 2)
                },
                operType: p,
                step2: ue,
                checkOperType: D,
                isLogin: true
            };
            if (e == 0) {
                n.rBtnTxt = r.verify
            } else {
                n.rBtnTxt = r.next_btn
            }
            var t = {
                sceneID: 1, callback: function (e) {
                    i.frequentlyDev = e.frequentlyDev;
                    i.riskfreeKey = e.riskfreeKey;
                    if (isRiskfree(i.riskfreeKey)) {
                        get4FactorsListFn(1, function (e) {
                            n.accountInfoArr = e.userAcctInfoList;
                            if (e.userAcctInfoList.length == 0) {
                                openPhoneDialog({}, rss_new.uc_common_bind_phone_number, r.bind_btn, 0, 2)
                            } else {
                                s(n)
                            }
                        })
                    } else {
                        openPhoneDialog({}, r.bind_new_phone_number_title, r.bind_btn, 0, 2)
                    }
                }
            };
            chkSecurityRiskFn(t)
        }, changeSecEmail: function () {
            var e = {
                lBtnTxt: r.cancel_btn,
                rBtnTxt: r.next_btn,
                desc: rss_new.auth_dialog_des,
                queryCond: i.loginUserName,
                optType: "change",
                reqType: 3,
                callbackFn: function (e) {
                    openEmailDialog(e, r.uc_set_sec_email_title, r.change_btn, 3, 5)
                },
                step2: ue,
                isLogin: true
            };
            var n = {
                sceneID: 14, callback: function (n) {
                    i.frequentlyDev = n.frequentlyDev;
                    i.riskfreeKey = n.riskfreeKey;
                    if (isRiskfree(i.riskfreeKey)) {
                        get4FactorsListFn(14, function (n) {
                            e.accountInfoArr = n.userAcctInfoList;
                            s(e)
                        })
                    } else {
                        openEmailDialog({}, r.uc_set_sec_email_title, r.change_btn, 3, 5)
                    }
                }
            };
            chkSecurityRiskFn(n)
        }, unbindSecEmail: function () {
            var n = this;
            var t = {
                sceneID: 12, callback: function (t) {
                    i.frequentlyDev = t.frequentlyDev;
                    i.riskfreeKey = t.riskfreeKey;
                    showNotic(r.remove, r.delete_sec_email_tip, r.remove, function () {
                        var t = {
                            lBtnTxt: r.cancel_btn,
                            rBtnTxt: r.unbind_btn,
                            desc: rss_new.auth_dialog_des,
                            queryCond: i.userAccount,
                            reqType: 3,
                            optType: "unbind",
                            chkAuthFn: function (t, r) {
                                t.delAccountType = 5, t.delUserAccount = e("#security_email_text").html().trim();
                                n.delPhoneEamil(t, r)
                            },
                            operType: W,
                            isLogin: true
                        };
                        if (isRiskfree(i.riskfreeKey)) {
                            get4FactorsListFn(12, function (e) {
                                t.accountInfoArr = e.userAcctInfoList;
                                s(t)
                            })
                        } else {
                            var c = {};
                            c.delAccountType = 5, c.delUserAccount = e("#security_email_text").html().trim();
                            n.delPhoneEamil(c, function () {
                            }, e("#passwordDiv"), e("#error_tip"))
                        }
                    }, null, "#ff3200")
                }
            };
            chkSecurityRiskFn(t)
        }, changeSecPhone: function () {
            var e = {
                lBtnTxt: r.cancel_btn,
                rBtnTxt: r.next_btn,
                desc: rss_new.auth_dialog_des,
                queryCond: i.loginUserName,
                optType: "change",
                reqType: 3,
                callbackFn: function (e) {
                    openPhoneDialog(e, r.uc_set_sec_phone_title, r.change_btn, 3, 6)
                },
                step2: ue,
                isLogin: true
            };
            var n = {
                sceneID: 13, callback: function (n) {
                    i.frequentlyDev = n.frequentlyDev;
                    i.riskfreeKey = n.riskfreeKey;
                    if (isRiskfree(i.riskfreeKey)) {
                        get4FactorsListFn(13, function (n) {
                            e.accountInfoArr = n.userAcctInfoList;
                            s(e)
                        })
                    } else {
                        openPhoneDialog({}, r.uc_set_sec_phone_title, r.change_btn, 3, 6)
                    }
                }
            };
            chkSecurityRiskFn(n)
        }, unbindSecPhone: function () {
            var n = this;
            var t = {
                sceneID: 11, callback: function (t) {
                    i.frequentlyDev = t.frequentlyDev;
                    i.riskfreeKey = t.riskfreeKey;
                    showNotic(r.remove, r.delete_sec_phone_tip, r.remove, function () {
                        var t = {
                            lBtnTxt: r.cancel_btn,
                            rBtnTxt: r.unbind_btn,
                            desc: rss_new.auth_dialog_des,
                            queryCond: i.userAccount,
                            optType: "unbind",
                            reqType: 3,
                            chkAuthFn: function (t, r) {
                                t.delAccountType = 6, t.delUserAccount = e("#security_phone_text").html().trim().replace("+", "00").removeAllSpace();
                                n.delPhoneEamil(t, r)
                            },
                            operType: W,
                            isLogin: true
                        };
                        if (isRiskfree(i.riskfreeKey)) {
                            get4FactorsListFn(11, function (e) {
                                t.accountInfoArr = e.userAcctInfoList;
                                s(t)
                            })
                        } else {
                            var c = {};
                            c.delAccountType = 6, c.delUserAccount = e("#security_phone_text").html().trim().replace("+", "00").removeAllSpace();
                            n.delPhoneEamil(c, function () {
                            }, e("#passwordDiv"), e("#error_tip"))
                        }
                    }, null, "#ff3200")
                }
            };
            chkSecurityRiskFn(t)
        }, unbindEmail: function (e) {
            var n = this;
            var t = {
                sceneID: 5, callback: function (t) {
                    i.frequentlyDev = t.frequentlyDev;
                    i.riskfreeKey = t.riskfreeKey;
                    showNotic(rss_new.uc_mobile_unbind, r.unbind_email_tip, r.unbind_btn, function () {
                        var t = {
                            lBtnTxt: r.cancel_btn,
                            desc: rss_new.auth_dialog_des,
                            rBtnTxt: r.unbind_btn,
                            queryCond: e,
                            optType: "unbind",
                            reqType: 3,
                            chkAuthFn: function (t, r) {
                                t.delAccountType = 1, t.delUserAccount = e;
                                n.delPhoneEamil(t, r)
                            },
                            operType: A
                        };
                        if (isRiskfree(i.riskfreeKey)) {
                            get4FactorsListFn(5, function (e) {
                                t.accountInfoArr = e.userAcctInfoList;
                                s(t)
                            })
                        } else {
                            var c = {};
                            c.delAccountType = 1, c.delUserAccount = e;
                            n.delPhoneEamil(c, function () {
                            })
                        }
                    }, null, "#ff3200")
                }
            };
            chkSecurityRiskFn(t)
        }, unbindPhone: function (e) {
            var n = this;
            var t = {
                sceneID: 4, callback: function (t) {
                    i.frequentlyDev = t.frequentlyDev;
                    i.riskfreeKey = t.riskfreeKey;
                    showNotic(rss_new.uc_mobile_unbind, r.unbind_phone_tip, r.unbind_btn, function () {
                        var t = {
                            lBtnTxt: r.cancel_btn,
                            rBtnTxt: r.unbind_btn,
                            queryCond: e,
                            desc: rss_new.auth_dialog_des,
                            optType: "unbind",
                            reqType: 3,
                            chkAuthFn: function (t, r) {
                                t.delAccountType = 2, t.delUserAccount = e.replace("+", "00").removeAllSpace();
                                n.delPhoneEamil(t, r)
                            },
                            operType: g
                        };
                        if (isRiskfree(i.riskfreeKey)) {
                            get4FactorsListFn(4, function (e) {
                                t.accountInfoArr = e.userAcctInfoList;
                                s(t)
                            })
                        } else {
                            var c = {};
                            c.delAccountType = 2, c.delUserAccount = e.replace("+", "00").removeAllSpace();
                            n.delPhoneEamil(c, function () {
                            })
                        }
                    }, null, "#ff3200")
                }
            };
            chkSecurityRiskFn(t)
        }, verifyPhone: function (t) {
            var c = this;
            var o = t.target.id;
            var a = "0";
            if (o.indexOf("_") >= 0) {
                a = o.split("_")[1]
            }
            u = e("#phoneVal_" + a).text().trim();
            f = e("#phoneVal_" + a).attr("anonyAccount").trim();
            if (isActiveAccount(u, 2)) {
                showError(e("#verifyPhoneTips_" + a), r.phoneActivated);
                return
            }
            var l = {
                lBtnTxt: r.cancel_btn,
                rBtnTxt: rss_new.uc_common_verify,
                queryCond: i.userAccount,
                optType: "verify",
                reqType: 0,
                accountInfoArr: [{userAccount: u, accountType: 2}],
                desc: r.uc_verify_phone_tip.format(u),
                chkAuthFn: function (e, t) {
                    c.activatePhoneAccount(e.authCode, function () {
                        t();
                        showTipDialog(r.setSuccess, r.close_btn, r.uc_common_phone_use_tip, function () {
                            n.location.reload()
                        })
                    })
                }
            };
            s(l)
        }, verifyEmail: function (n, t, i, c) {
            if (isActiveAccount(n, i)) {
                showError(c, r.emailActivated);
                return
            }
            sendEmialActive(t, i, c, function () {
                verifyEmailDialog(t, i, c)
            });
            e("#iHaveVerifyBtn").on("click", function (e) {
                e.stopPropagation();
                checkEmailHasVerify(n, i)
            })
        }, verifySecPhone: function () {
            var t = this;
            f = i.anonySecPhoneAcct;
            u = i.securityPhone;
            if (isActiveAccount(u, 6)) {
                showError(e("#security_phone_tip"), r.phoneActivated);
                return
            }
            var c = e("#security_phone_text").text().trim();
            var o = {
                lBtnTxt: r.cancel_btn,
                rBtnTxt: rss_new.uc_common_verify,
                queryCond: i.userAccount,
                optType: "verify",
                reqType: 0,
                accountInfoArr: [{userAccount: c, accountType: 6}],
                desc: r.uc_verify_phone_tip.format(c),
                chkAuthFn: function (e, i) {
                    t.activatePhoneAccount(e.authCode, function () {
                        i();
                        showTipDialog(r.setSuccess, r.close_btn, r.secPhoneUseTip, function () {
                            n.location.reload()
                        })
                    })
                }
            };
            s(o)
        }, activatePhoneAccount: function (n, t) {
            var c = {mobilePhone: u, reqClientType: i.reqClientType, smsAuthCode: n};
            ajaxHandler("activateMsisdn", c, function (n) {
                if (n && n.isSuccess == 1) {
                    if (typeof t == "function") {
                        t()
                    }
                } else {
                    e("#inputAuthCode").addClass("input-error-EMUI5");
                    switch (n.errorCode) {
                        case"10000001":
                        case"70001101":
                        case"70001201": {
                            e("#auth_error_tip").html(r.error_10000001);
                            break
                        }
                        case"70002039": {
                            e("#auth_error_tip").html(r.error_70002039);
                            break
                        }
                        case"70001401": {
                            e("#auth_error_tip").html(r.error_70001401);
                            break
                        }
                        case"70002001": {
                            e("#auth_error_tip").html(r.error_70002001);
                            break
                        }
                        default: {
                            e("#auth_error_tip").html(r.error_10000001);
                            break
                        }
                    }
                }
            }, function () {
            }, false, "json")
        }, delPhoneEamil: function (t, o) {
            t.frequentlyDev = i.frequentlyDev;
            t.password = password;
            var s = t.errorTipEl || e("#msg_error_auth");
            var a = t.errorBorderDiv || e("#authCodeDiv");
            var l = {
                oldAccountType: t.authAccountType,
                oldUserAccount: t.authUserAccount,
                oldAuthCode: t.authCode,
                delAccountType: t.delAccountType,
                delUserAccount: t.delUserAccount,
                reqClientType: c,
                frequentlyDev: i.frequentlyDev
            };
            ajaxHandler("delPhoneEmail", l, function (t) {
                var c = t.isSuccess;
                if (c == "1") {
                    o();
                    var l = t.isCurrentLoginAccount;
                    var u = "";
                    if (l == "1") {
                        u = r.reloginTip
                    }
                    showSuccessTipDialog(u, r.unbindSeccess, i.successImgPath, function () {
                        if (l == "1") {
                            n.location.href = XSSGuard4URL(e("#logoutUrl").attr("href"))
                        } else {
                            n.location.reload()
                        }
                    })
                } else {
                    a.addClass("input-error-EMUI5");
                    if (t.errorCode == "10000001") {
                        s.html(r.error_10000001)
                    } else if (t.errorCode == "10000002") {
                        s.html(r.error_10000002)
                    } else if (t.errorCode == "10000004") {
                        s.html(r.error_10000004)
                    } else if (t.errorCode == "70001201") {
                        s.html(r.error_70001201_2)
                    } else if (t.errorCode == "70001401") {
                        s.html(r.error_70001401)
                    } else if (t.errorCode == "70002039") {
                        s.html(r.error_70002039)
                    } else if (t.errorCode == "70002057") {
                        s.html(r.error_70002057_0)
                    } else if (t.errorCode == "70002058") {
                        s.html(r.error_70002058)
                    } else if (t.errorCode == "70006006") {
                        s.html(r.error_70006006)
                    } else if (t.errorCode == "70002003") {
                        s.html(r.error_70002003)
                    } else if (t.errorCode == "70002001") {
                        s.html(r.error_70002001)
                    } else if (t.errorCode == "70002016") {
                        s.html(r.error_70002016)
                    } else if (t.errorCode == "70002053") {
                        s.html(r.error_70002053)
                    } else if (t.errorCode == "70002073") {
                        s.html(r.error_70002073)
                    } else if (t.errorCode == "70002043") {
                        s.html(r.error_70002043)
                    } else if (t.errorCode == "70008800") {
                        s.html(r.error_risk_70008800)
                    } else if (t.errorCode == "7009999") {
                        s.html(r.del_user_error_70002079)
                    } else {
                        s.html(r.unbindFailed)
                    }
                }
            }, function (n) {
                showError(e(".errortip"), r.unbindFailed)
            }, false, "json")
        }, initAccountList: function () {
            e("span[id^=emailVal]").each(function (n, t) {
                accountList.push({userAccount: e(t).html().trim(), accountType: 1})
            });
            e("span[id^=phoneVal]").each(function (n, t) {
                accountList.push({userAccount: e(t).html().trim(), accountType: 2})
            });
            accountList.push({userAccount: e("#security_email_text").html().trim(), accountType: 5});
            accountList.push({userAccount: e("#security_phone_text").html().trim(), accountType: 6})
        }, registerValidator: function () {
            validator.register("pwdformat", function (e, n) {
                if (n.allowEmpty && (e == "" || e == null)) {
                    return true
                }
            });
            validator.register("pwdComplax", function (e, n) {
                return true
            });
            validator.register("pwdEqual", function (e, n) {
                if (!n.compareTo.val()) {
                    return true
                } else {
                    if (e == n.compareTo.val()) {
                        return true
                    } else {
                        return false
                    }
                }
            })
        }
    };
    e(function () {
        new de
    })
})(jQuery, window);